package com.blackhorse.demo.myBeanFactory.service;

import com.blackhorse.demo.myBeanFactory.dao.MyAccountDao;

public class MyAccountServiceImplBySpring implements MyAccountService {

    //使用Spring解耦
    private MyAccountDao accountDao;

    public void setAccountDao(MyAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void saveAccount() {
        accountDao.saveAccount();
    }
}
